#ifndef EZIMAGE_HPP



#define EZIMAGE_HPP





#include <cmath>

#include <climits>

#include <IL/ilu.h>



#ifndef M_PI // pas definie sur tous les compilateurs il parait

#define M_PI 3.14159265358979323846

#endif



#define indice(x, y) (((this->width * 4) * (y)) + (x))





class EzImage{

    public:



    EzImage(const char *nom);

    ~EzImage();

    ILboolean sauvegarder_image(const char *nom);

    void flou(unsigned radius);

    void negative();

    void edge_detect();



    void setSpeaking(bool);





    private:

    bool speaking;

    ILuint image;

    ILubyte *data;

    ILuint width;

    ILuint height;

    void* flou_etape(void*);

    void* negative_etape(void*);

  void* edge_detect_etape(void*);



};





#endif
